"""
@作者 = "陈诗"
@email = 3168157154@qq.com
@creative_time = 2025/10/28 19:15
"""


class Bow:
    def __init__(self, model, arrow_name, arrow_count, injury):  # 弓类型, 箭类型, 箭数量以及伤害
        self.model = model
        self.arrow_name = arrow_name
        self.arrow_count = arrow_count
        self.injury = injury

    def shoot(self, archer):
        if self.arrow_count >= 1:
            self.arrow_count -= 1
            print(f"{archer.name}使用{self.model}射出一支{self.arrow_name},造成{self.injury}点伤害!")
        else:
            print("没有箭矢了")
